<html>
	<head>
	<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
	<script type="text/javascript" src="js/test.js"></script>
	<script type="text/javascript">
		function width() {
			var winWidth = -1;
			setInterval(appFn,30);
			function appFn(){
				winWidth=$(window).width();
			}
			setInterval(function(){
				alert(winWidth);
			},40);
		}
		width();
	</script>
	</head>
	<body>
		<a><img></img>a</a>
	<body>
	
</html>